import { axios } from "@/services/axios";

const Attaches = {
  get: data => axios.get(`api/attaches/${data.sourceid}/${data.type}`),
  create: data => axios.post("api/attaches", data),
  save: data => axios.post(`api/attaches/${data.sourceid}/${data.type}`, data),
  delete: data => axios.delete(`api/attaches/${data.sourceid}/${data.type}`),
  getlist: params => axios.post(`api/attaches/list`, params),
  getlistall: params => axios.post(`api/attaches/listall`, params),
  getlistsel: params => axios.post(`api/attaches/listsel`, params),
};

export default Attaches;


